import { combineReducers } from 'redux';
import { NavigationActions } from 'react-navigation';

const initialState = { testShow: true};

function nav (state = initialState, action) {

  console.log("action type: %s",action.type);

  switch (action.type) {
    case 'push':{

    }
      break;
    case 'pop':{

    }
      break;
    case 'act':{

    }
      break;
    case 'app_test_action':{
      return Object.assign({}, state, {
        text: action.text
      })
    }
      break;

    default:
      return state;
  }
}






const AppReducer = combineReducers({
  nav,
});

export default AppReducer;
